/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.client.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Gauthier
 */
@Entity
@Table(name = "TB_commande_livre")
public class CommandeLivre implements Serializable {
        
    
    @Id
    @JoinColumn(name="ID_livre")
    @ManyToOne
    private Livre livre;
    
    @Id
    @JoinColumn(name = "ID_commande")
    @ManyToOne
    private Commande commande;

    @Column(name="quantite")
    private int quantite = 1;

    public CommandeLivre() {
        
    }
}
